/*
 * @Title PDFBox.java
 * @Description pdfbox-2.0.8.jar
 * fontbox-2.0.8.jar
 * preflight-2.0.8.jar
 * xmpbox-2.0.8.jar
 * pdfbox-tools-2.0.8.jar
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.core.function.pdfbox;

import org.apache.pdfbox.pdmodel.PDDocument;

import java.io.IOException;

/**
 * @author lizhen
 */
public class PDFBox {

    public static void main(String[] args) {
        PDFBoxCreation.main(null);
    }

    static class PDFBoxCreation {

        private static String FILE_PATH = "1.8\\api\\main\\resource\\com\\lizhen\\core\\function\\pdfbox\\PDFBox\\PDFBox.pdf";

        public static void main(String args[]) {
            PDDocument document = new PDDocument();
            try {
                document.save(FILE_PATH);

                System.out.println("PDF created");

                document.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }

}

